package org.accp.pojo;

public class RolePerm {
    private Integer id;
    private Integer roleid;
    private Integer permid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public Integer getPermid() {
        return permid;
    }

    public void setPermid(Integer permid) {
        this.permid = permid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RolePerm rolePerm = (RolePerm) o;

        if (id != rolePerm.id) return false;
        if (roleid != null ? !roleid.equals(rolePerm.roleid) : rolePerm.roleid != null) return false;
        if (permid != null ? !permid.equals(rolePerm.permid) : rolePerm.permid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (roleid != null ? roleid.hashCode() : 0);
        result = 31 * result + (permid != null ? permid.hashCode() : 0);
        return result;
    }
}
